//
//  QSWorkStationInterface.h
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/5/21.
//  Copyright © 2020 DingC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ResponseMessage.h"
#import "QSWorkStationDataModel.h"
#import "QSWorkDetailsModel.h"
#import "QSWorkStationPersonModel.h"
@interface QSWorkStationInterface : NSObject
/**
* @brief 获取全部的工作数据
*/
+ (void)getAllWorkListWithPageIndex:(NSInteger)pageIndex
                                andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSWorkStationDataModel *resultModel))block;

/**
* @brief 获取我的工作数据
*/
+ (void)getMyWorkListWithPageIndex:(NSInteger)pageIndex
                                andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSWorkStationDataModel *resultModel))block;
/**
* @brief 获取工作单详情
 * @param ewId 工作id
*/
+ (void)getMyWorkDetailsWithId:(NSString *)ewId
                      andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, QSWorkDetailsModel *resultModel))block;



/**
* @brief 获取完成人员数据
 * @param ewId 工作id
 * @param adminName 人名（可用搜索）
*/
+ (void)getPersonListWithId:(NSString *)ewId
                  AdminName:(NSString *)adminName
                      andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSArray *modelArr))block;

/**
* @brief 提交工作备注（完成工作）
 * @param ewId 工作id
 */
+ (void)postFinishWorkWithId:(NSString *)ewId
                    andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSString *finishStr))block;

/**
* @brief 提交工作备注
 * @param ewId 工作id
 * @param ewFinishRemark 备注
*/
+ (void)postFinishWorkWithId:(NSString *)ewId
                  Remark:(NSString *)ewFinishRemark
                      andBlock:(void (^)(ResponseMessage *rspStatusAndMessage, NSString *finishStr))block;
@end

